package com.example.certificate.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "购物车")
public class OrderCarDTO {

    @ApiModelProperty(value = "商品ID")
    @NotBlank(message = "商品ID不能为空")
    private String productId;

    @ApiModelProperty(value = "商品数量")
    private Integer productAmount;

    @ApiModelProperty(value = "商品价格")
    @NotNull
    private float price;

    private String tradeName;

    private Float totalPricet;

}
